﻿@using System.Globalization
@model CultuRAM.Models.Event

@{
    ViewBag.Title = "Eliminar";
}

<div class="alert alert-danger" style="min-height: 490px; margin-top: 10px;">
    
    <h4><i class="icon-remove"></i> Eliminar Evento</h4>
    <br/><br/>

    <fieldset>
        <legend>Dados gerais do Evento</legend>
        <p>
            <span class="display-label">
                <b>@Html.DisplayNameFor(model => model.Title):</b>
            </span>
            <span class="display-field">
                @Html.DisplayFor(model => model.Title)
            </span>
        </p>
        <p>
            <span class="display-label">
                <b>@Html.DisplayNameFor(model => model.StartDate):</b>
            </span>
            <span class="display-field">
                @Html.DisplayNameFor(model => model.StartDate)
            </span>
        </p>
        <p>
            <span class="display-label">
                <b>@Html.DisplayNameFor(model => model.EndDate):</b>
            </span>
            <span class="display-field">
                @Html.DisplayNameFor(model => model.EndDate)
            </span>
        </p><p>
                <span class="display-label">
                    <b>@Html.DisplayNameFor(model => model.Duration):</b>
                </span>
                <span class="display-field">
                    @Html.DisplayFor(model => model.Duration)
                </span>
            </p>
        <p>
            <span class="display-label">
                <b>@Html.DisplayNameFor(model => model.Public):</b>
            </span>
            <span class="display-field">
                @Html.DisplayFor(model => model.Public)
            </span>
        </p>
        <p>
            <span class="display-label">
                <b>@Html.DisplayNameFor(model => model.EventType):</b>
            </span>
            <span class="display-field">
                @Html.DisplayFor(model => model.EventType.Type)
            </span>
        </p>

    </fieldset>
    
    <br/><br/>
    <b>ATENÇÃO!</b><br />
    <span>O registo será eliminado definitivamente. Pretende Continuar?</span>


    @using (Html.BeginForm("Delete","Event")) {
        <p>
            <br /><br/>
            <button  type="submit" value="Guardar" class="btn btn-danger"><i class="icon-ok icon-white"></i> Sim</button> 
            <a href="@Url.Action("Index")" class="btn btn-default"><i class="icon-ban-circle"></i> Não</a>
        </p>
    }

</div>
